package com.steven.android40_weathermvp.retrofitinterface;

import com.steven.android40_weathermvp.bean.WeatherBean;
import com.steven.android40_weathermvp.utils.URLConstant;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;


public interface RetrofitInterface {
    /**
     * 作用：GET请求，指定Path参数和Query参数.
     * 备注：参数必须是先path，再query
     */
    @GET(URLConstant.URL_WEATHER_PATH)
    Observable<WeatherBean> getBeanObservable(@Query("city") String city);

}
